package com.zxw.third.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zxw.common.entity.baidu.BaiduHotEntity;
import com.zxw.common.entity.baidu.BaiduHotListQuery;
import com.zxw.common.entity.baidu.BaiduHotQuery;
import com.zxw.common.entity.baidu.BaiduHotVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhanxuewei
 * @since 2022-10-11
 */
public interface BaiduHotService extends IService<BaiduHotEntity> {

    /**
     * 添加
     *
     * @param baiduHotQuery BaiduHotQuery
     * @return 是否成功 true|false
     */
    boolean save(BaiduHotQuery baiduHotQuery);

    /**
     * 批量添加
     *
     * @param list List<BaiduHotQuery>
     * @return 是否成功 true|false
     */
    boolean saveBatch(List<BaiduHotQuery> list);

    /**
     * 根据ID集合批量删除
     *
     * @param ids id集合
     * @return 是否成功 true|false
     */
    boolean removeByIds(List<String> ids);

    /**
     * 根据ID修改
     *
     * @param baiduHotQuery BaiduHotQuery
     * @return 是否成功 true|false
     */
    boolean updateById(BaiduHotQuery baiduHotQuery);

    /**
     * 根据ID查询数据
     *
     * @param id ID
     * @return BaiduHotDO
     */
    BaiduHotEntity getById(String id);

    /**
     * 条件分页查询
     *
     * @param baiduHotListQuery BaiduHotListQuery
     * @return IPage<BaiduHotDO>
     */
    IPage<BaiduHotEntity> list(BaiduHotListQuery baiduHotListQuery);

    List<BaiduHotVO> newsHotList();

    void newsSave();

}
